﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace Lucene.Linq.Mapping
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class DocumentProjection
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="fieldName"></param>
        /// <param name="fieldType"></param>
        /// <returns></returns>
        public abstract object GetValue(string fieldName, Type fieldType);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="query"></param>
        /// <typeparam name="E"></typeparam>
        /// <returns></returns>
        public abstract IEnumerable<E> ExecuteSubQuery<E>(LambdaExpression query);
    }
}